package com.csweimei.rentmanagementtreasure.http.entity;

import com.csweimei.rentmanagementtreasure.utils.ValidateUtils;
import com.google.gson.annotations.SerializedName;

import java.util.List;

public class LeaseListBean extends BaseResult{
    @SerializedName("data")
    private List<DataDTO> data;

    public List<DataDTO> getData() {
        return data;
    }

    public void setData(List<DataDTO> data) {
        this.data = data;
    }

    public static class DataDTO {
        @SerializedName("id")
        private int id;
        @SerializedName("housingID")
        private int housingID;
        @SerializedName("customID")
        private int customID;
        @SerializedName("quarters")
        private String quarters;
        @SerializedName("customImg")
        private String customImg;
        @SerializedName("sex")
        private String sex;
        @SerializedName("name")
        private String name;
        @SerializedName("contact")
        private String contact;
        @SerializedName("Address")
        private String address;
        @SerializedName("category")
        private String category;
        @SerializedName("state")
        private int state;
        @SerializedName("contractStartTime")
        private String contractStartTime;
        @SerializedName("contractEndTime")
        private String contractEndTime;
        @SerializedName("paymentMethod")
        private String paymentMethod;
        @SerializedName("MonthlyRent")
        private String monthlyRent;
        @SerializedName("deposit")
        private String deposit;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getHousingID() {
            return housingID;
        }

        public void setHousingID(int housingID) {
            this.housingID = housingID;
        }

        public int getCustomID() {
            return customID;
        }

        public void setCustomID(int customID) {
            this.customID = customID;
        }

        public String getQuarters() {
            return quarters;
        }

        public void setQuarters(String quarters) {
            this.quarters = quarters;
        }

        public String getCustomImg() {
            return customImg;
        }

        public void setCustomImg(String customImg) {
            this.customImg = customImg;
        }

        public String getSex() {
            return sex;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public String getName() {
            return name;
        }

        public String getHzName() {
            return "租户姓名："+name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getContact() {
            return contact;
        }
        public String getHzContact() {
            return "租户电话："+contact;
        }

        public void setContact(String contact) {
            this.contact = contact;
        }

        public String getAddress() {
            return address;
        }

        public String getHzAddress() {
            return "房源位置："+address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getCategory() {
            return category;
        }

        public void setCategory(String category) {
            this.category = category;
        }

        public int getState() {
            return state;
        }

        public void setState(int state) {
            this.state = state;
        }

        public String getHzTime() {
            return ValidateUtils.getTimeFormYMD(contractStartTime)+"至"+ValidateUtils.getTimeFormYMD(contractEndTime);
        }


        public String getContractStartTime() {
            return contractStartTime;
        }

        public void setContractStartTime(String contractStartTime) {
            this.contractStartTime = contractStartTime;
        }

        public String getContractEndTime() {
            return contractEndTime;
        }

        public void setContractEndTime(String contractEndTime) {
            this.contractEndTime = contractEndTime;
        }

        public String getPaymentMethod() {
            return paymentMethod;
        }

        public void setPaymentMethod(String paymentMethod) {
            this.paymentMethod = paymentMethod;
        }

        public String getMonthlyRent() {
            return monthlyRent;
        }

        public void setMonthlyRent(String monthlyRent) {
            this.monthlyRent = monthlyRent;
        }

        public String getDeposit() {
            return deposit;
        }

        public void setDeposit(String deposit) {
            this.deposit = deposit;
        }
    }
}
